/*! For license information please see 3.2adb97ab.chunk.js.LICENSE.txt */
(this.webpackJsonparimo=this.webpackJsonparimo||[]).push([[3],{333:function(e,t,a){"use strict";var n=a(2),l=a(6),r=a(7),c=a(12),s=a(13),i=a(0),o=a.n(i),m=a(308),u=a(17),d=a(313),p=(a(334),function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(e){var n;return Object(l.a)(this,a),(n=t.call(this,e)).requestParams={includes:"group,spotify,owner",fields:"projects.name,projects.id",orderBy:"-id"},n.handleChange=function(e){n.props.onChange(e),n.setState({value:e})},n.state={selectOptions:[],value:""},n}return Object(r.a)(a,[{key:"getProjectList",value:function(){var e=this;this.props.projectList.length&&this.setState({selectOptions:this.props.projectList.filter((function(t){return!e.props.onlyOwners||t.owner.id===e.props.owner})).map((function(e){return Object(n.a)(Object(n.a)({},e),{},{value:e.id,label:e.name,group_id:e.group.id})}))})}},{key:"componentDidMount",value:function(){this.props.owner&&(this.requestParams.owner=this.props.owner),this.props.isGetProjects&&this.props.getProjectList(this.requestParams),this.getProjectList()}},{key:"componentDidUpdate",value:function(e,t,a){e.projectList!==this.props.projectList&&this.getProjectList()}},{key:"render",value:function(){return o.a.createElement(o.a.Fragment,null,o.a.createElement(m.a,{className:"input-dark-bg ".concat(this.props.className," ").concat(this.props.required?"is-invalid input-invalid":""),maxMenuHeight:this.props.maxMenuHeight,classNamePrefix:"dark_select",value:this.state.value||this.props.selectedProject,options:this.state.selectOptions,onChange:this.handleChange,name:"color"}),o.a.createElement("div",{className:"invalid-feedback"},"\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u043f\u0440\u043e\u0435\u043a\u0442"))}}]),a}(i.Component));t.a=Object(u.b)(null,{getProjectList:d.f})(p)},334:function(e,t,a){},384:function(e,t,a){"use strict";a.d(t,"b",(function(){return d})),a.d(t,"d",(function(){return p})),a.d(t,"a",(function(){return E})),a.d(t,"c",(function(){return f}));var n=a(2),l=a(6),r=a(7),c=a(12),s=a(13),i=a(101),o=a(50),m=a(11),u=new o.a,d=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(){return Object(l.a)(this,a),t.apply(this,arguments)}return Object(r.a)(a,null,[{key:"getByCode",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(n.a)({},a);return new Promise((function(a,n){return t.request({auth:!1}).get("".concat(t.entity,"/code/").concat(e),{params:r}).then((function(e){u.setWrapper(e,l).then((function(){return a(e.data)})).catch((function(){return n(e.data)}))})).catch((function(e){n(console.log("getById "+t.entity,e))}))}))}},{key:"generateCode",value:function(e){var t=this,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=Object(n.a)({},a),c="?verify_id="+Object(m.c)();return new Promise((function(a,n){return t.request({auth:!0}).get("".concat(t.entity,"/generateCode/").concat(e).concat(c),{params:r}).then((function(e){u.setWrapper(e,l).then((function(){return a(e.data)})).catch((function(){return n(e.data)}))})).catch((function(e){n(console.log("getById "+t.entity,e))}))}))}},{key:"updateByCode",value:function(e,t){var a=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new Promise((function(l,r){return a.request({auth:!1}).put("".concat(a.entity,"/code/").concat(t),e).then((function(e){u.setWrapper(e,n).then((function(){return l(e.data)})).catch((function(){return r(e.data)}))})).catch((function(e){r(console.log("update "+a.entity,e))}))}))}},{key:"entity",get:function(){return"releases"}}]),a}(i.a),p=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(){return Object(l.a)(this,a),t.apply(this,arguments)}return Object(r.a)(a,null,[{key:"index",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=Object(n.a)({},t);return new Promise((function(t,n){return e.request({auth:!1}).get("".concat(e.entity),{params:l}).then((function(e){u.setWrapper(e,a).then((function(){return t(e.data)})).catch((function(){return n(e.data)}))})).catch((function(t){n(console.log("getList "+e.entity,t))}))}))}},{key:"entity",get:function(){return"releases/types"}}]),a}(i.a),E=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(){return Object(l.a)(this,a),t.apply(this,arguments)}return Object(r.a)(a,null,[{key:"index",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],l=Object(n.a)({},t);return new Promise((function(t,n){return e.request({auth:!1}).get("".concat(e.entity),{params:l}).then((function(e){u.setWrapper(e,a).then((function(){return t(e.data)})).catch((function(){return n(e.data)}))})).catch((function(t){n(console.log("getList "+e.entity,t))}))}))}},{key:"entity",get:function(){return"releases/genres"}}]),a}(i.a),f=function(e){Object(c.a)(a,e);var t=Object(s.a)(a);function a(){return Object(l.a)(this,a),t.apply(this,arguments)}return Object(r.a)(a,null,[{key:"updateByCode",value:function(e,t){var a=this,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return new Promise((function(l,r){return a.request({auth:!1}).put("".concat(a.entity,"/code/").concat(t),e).then((function(e){u.setWrapper(e,n).then((function(){return l(e.data)})).catch((function(){return r(e.data)}))})).catch((function(e){r(console.log("update "+a.entity,e))}))}))}},{key:"entity",get:function(){return"releases/tracks"}}]),a}(i.a)},385:function(e,t,a){},414:function(e,t,a){"use strict";a.d(t,"e",(function(){return r})),a.d(t,"b",(function(){return c})),a.d(t,"j",(function(){return s})),a.d(t,"h",(function(){return i})),a.d(t,"i",(function(){return o})),a.d(t,"c",(function(){return m})),a.d(t,"g",(function(){return u})),a.d(t,"f",(function(){return d})),a.d(t,"d",(function(){return p})),a.d(t,"a",(function(){return E}));var n=a(0),l=a.n(n),r=function(){return l.a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 17.25C13.575 17.25 17.25 13.575 17.25 9C17.25 4.425 13.575 0.75 9 0.75C4.425 0.75 0.75 4.425 0.75 9C0.75 13.575 4.425 17.25 9 17.25ZM9.15 10.425C9.45 10.35 11.925 9.45 11.925 7.5C11.925 6.225 11.1 5.1 9.9 4.725C8.325 4.125 6.6 4.95 6.075 6.525C6 6.9 6.15 7.35 6.525 7.35C6.9 7.5 7.35 7.275 7.5 6.9C7.8 6.15 8.7 5.7 9.45 6C10.05 6.225 10.425 6.75 10.425 7.425C10.425 8.25 9.15 8.85 8.7 9C8.325 9.15 8.1 9.6 8.25 9.975C8.325 10.275 8.625 10.5 8.925 10.5C9 10.5 9.075 10.5 9.15 10.425ZM15.75 9C15.75 5.25 12.75 2.25 9 2.25C5.25 2.25 2.25 5.25 2.25 9C2.25 12.75 5.25 15.75 9 15.75C12.75 15.75 15.75 12.75 15.75 9ZM9.37499 12.15C9.44999 12.15 9.52499 12.225 9.52499 12.225C9.59999 12.3 9.67499 12.375 9.59999 12.45C9.67499 12.525 9.67499 12.675 9.67499 12.75C9.67499 12.975 9.59999 13.125 9.44999 13.275C9.29999 13.425 9.14999 13.5 8.92499 13.5C8.69999 13.5 8.54999 13.425 8.39999 13.275C8.24999 13.125 8.17499 12.975 8.17499 12.75C8.17499 12.6621 8.20073 12.6 8.22205 12.5485C8.23713 12.5121 8.24999 12.4811 8.24999 12.45C8.24999 12.375 8.32499 12.3 8.39999 12.225C8.47499 12.15 8.54999 12.075 8.62499 12.075C8.77499 12 8.92499 12 9.07499 12C9.11812 12.0431 9.13645 12.0615 9.1585 12.0692C9.1748 12.075 9.19312 12.075 9.22499 12.075C9.26249 12.075 9.28124 12.0938 9.29999 12.1125C9.31874 12.1312 9.33749 12.15 9.37499 12.15Z",fill:"#BABFC7"}),l.a.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"0",width:"18",height:"18"},l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 17.25C13.575 17.25 17.25 13.575 17.25 9C17.25 4.425 13.575 0.75 9 0.75C4.425 0.75 0.75 4.425 0.75 9C0.75 13.575 4.425 17.25 9 17.25ZM9.15 10.425C9.45 10.35 11.925 9.45 11.925 7.5C11.925 6.225 11.1 5.1 9.9 4.725C8.325 4.125 6.6 4.95 6.075 6.525C6 6.9 6.15 7.35 6.525 7.35C6.9 7.5 7.35 7.275 7.5 6.9C7.8 6.15 8.7 5.7 9.45 6C10.05 6.225 10.425 6.75 10.425 7.425C10.425 8.25 9.15 8.85 8.7 9C8.325 9.15 8.1 9.6 8.25 9.975C8.325 10.275 8.625 10.5 8.925 10.5C9 10.5 9.075 10.5 9.15 10.425ZM15.75 9C15.75 5.25 12.75 2.25 9 2.25C5.25 2.25 2.25 5.25 2.25 9C2.25 12.75 5.25 15.75 9 15.75C12.75 15.75 15.75 12.75 15.75 9ZM9.37499 12.15C9.44999 12.15 9.52499 12.225 9.52499 12.225C9.59999 12.3 9.67499 12.375 9.59999 12.45C9.67499 12.525 9.67499 12.675 9.67499 12.75C9.67499 12.975 9.59999 13.125 9.44999 13.275C9.29999 13.425 9.14999 13.5 8.92499 13.5C8.69999 13.5 8.54999 13.425 8.39999 13.275C8.24999 13.125 8.17499 12.975 8.17499 12.75C8.17499 12.6621 8.20073 12.6 8.22205 12.5485C8.23713 12.5121 8.24999 12.4811 8.24999 12.45C8.24999 12.375 8.32499 12.3 8.39999 12.225C8.47499 12.15 8.54999 12.075 8.62499 12.075C8.77499 12 8.92499 12 9.07499 12C9.11812 12.0431 9.13645 12.0615 9.1585 12.0692C9.1748 12.075 9.19312 12.075 9.22499 12.075C9.26249 12.075 9.28124 12.0938 9.29999 12.1125C9.31874 12.1312 9.33749 12.15 9.37499 12.15Z",fill:"white"})),l.a.createElement("g",{mask:"url(#mask0)"},l.a.createElement("rect",{width:"18",height:"18",fill:"none"})))},c=function(){return l.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M18 2H15C13.6739 2 12.4021 2.52678 11.4645 3.46447C10.5268 4.40215 10 5.67392 10 7V10H7V14H10V22H14V14H17L18 10H14V7C14 6.73478 14.1054 6.48043 14.2929 6.29289C14.4804 6.10536 14.7348 6 15 6H18V2Z",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},s=function(){return l.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M22.54 6.42C22.4212 5.94541 22.1793 5.51057 21.8387 5.15941C21.498 4.80824 21.0708 4.55318 20.6 4.42C18.88 4 12 4 12 4C12 4 5.12001 4 3.40001 4.46C2.92925 4.59318 2.50198 4.84824 2.16135 5.19941C1.82072 5.55057 1.5788 5.98541 1.46001 6.46C1.14522 8.20556 0.991243 9.97631 1.00001 11.75C0.988786 13.537 1.14277 15.3213 1.46001 17.08C1.59097 17.5398 1.83831 17.9581 2.17815 18.2945C2.51799 18.6308 2.93883 18.8738 3.40001 19C5.12001 19.46 12 19.46 12 19.46C12 19.46 18.88 19.46 20.6 19C21.0708 18.8668 21.498 18.6118 21.8387 18.2606C22.1793 17.9094 22.4212 17.4746 22.54 17C22.8524 15.2676 23.0063 13.5103 23 11.75C23.0112 9.96295 22.8572 8.1787 22.54 6.42V6.42Z",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.a.createElement("path",{d:"M9.75 15.02L15.5 11.75L9.75 8.48V15.02Z",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},i=function(){return l.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M23 3C22.0424 3.67548 20.9821 4.19211 19.86 4.53C19.2577 3.83751 18.4573 3.34669 17.567 3.12393C16.6767 2.90116 15.7395 2.9572 14.8821 3.28445C14.0247 3.61171 13.2884 4.1944 12.773 4.95372C12.2575 5.71303 11.9877 6.61234 12 7.53V8.53C10.2426 8.57557 8.50127 8.18581 6.93101 7.39545C5.36074 6.60508 4.01032 5.43864 3 4C3 4 -1 13 8 17C5.94053 18.398 3.48716 19.0989 1 19C10 24 21 19 21 7.5C20.9991 7.22145 20.9723 6.94359 20.92 6.67C21.9406 5.66349 22.6608 4.39271 23 3V3Z",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},o=function(){return l.a.createElement("svg",{width:"31",height:"20",viewBox:"0 0 31 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M15.6871 20C20.1717 20 18.5727 17.2159 18.9188 16.4153C18.9137 15.8175 18.9085 15.2424 18.9292 14.8928C19.2133 14.9713 19.8837 15.3045 21.2684 16.6243C23.406 18.7397 23.9524 20 25.6793 20H28.8581C29.8656 20 30.39 19.5909 30.6522 19.2476C30.9054 18.9157 31.1534 18.3331 30.8821 17.4261C30.173 15.2424 26.0371 11.4715 25.7801 11.0738C25.8188 11.0003 25.8808 10.9028 25.9131 10.8521H25.9105C26.7269 9.79447 29.8423 5.21673 30.3009 3.38513C30.3022 3.3826 30.3035 3.3788 30.3035 3.375C30.5515 2.539 30.3241 1.99687 30.089 1.69033C29.7351 1.2318 29.172 1 28.4112 1H25.2324C24.1681 1 23.3608 1.52567 22.9527 2.48453C22.2694 4.1882 20.35 7.6918 18.9111 8.93187C18.8672 7.175 18.8969 5.8336 18.9201 4.83673C18.9666 2.8924 19.1165 1 17.0589 1H12.0627C10.7737 1 9.54015 2.38067 10.8757 4.01973C12.0434 5.45613 11.2955 6.25667 11.5474 10.2416C10.5657 9.20927 8.8194 6.42133 7.58458 2.8582C7.23842 1.89427 6.71401 1.00127 5.23765 1.00127H2.05889C0.769825 1.00127 0 1.69033 0 2.84427C0 5.43587 5.8499 20 15.6871 20ZM5.23765 2.90127C5.51794 2.90127 5.54636 2.90127 5.75431 3.48013C7.01884 7.13193 9.85531 12.5355 11.9271 12.5355C13.4836 12.5355 13.4836 10.9712 13.4836 10.3822L13.4823 5.693C13.397 4.14133 12.8209 3.36867 12.4425 2.9L16.9736 2.90507C16.9762 2.9266 16.9478 8.09207 16.9865 9.34353C16.9865 11.1207 18.4254 12.1391 20.6716 9.90973C23.0418 7.28647 24.6809 3.36487 24.7468 3.20527C24.8436 2.97727 24.9276 2.9 25.2324 2.9H28.4112H28.4241C28.4228 2.9038 28.4228 2.9076 28.4215 2.9114C28.1309 4.2414 25.2621 8.47967 24.3024 9.79573C24.2869 9.816 24.2727 9.83753 24.2585 9.85907C23.8362 10.5355 23.4926 11.2828 24.3167 12.3341H24.3179C24.3929 12.4228 24.5879 12.6305 24.8721 12.9193C25.7556 13.8136 28.7858 16.8713 29.0544 18.0873C28.8762 18.1152 28.6824 18.0949 25.6793 18.1013C25.04 18.1013 24.5401 17.1639 22.6323 15.2766C20.917 13.6401 19.8036 12.9713 18.7897 12.9713C16.8212 12.9713 16.9646 14.5381 16.9826 16.4331C16.9891 18.4876 16.9762 17.8378 16.9904 17.967C16.8754 18.0113 16.5461 18.1 15.6871 18.1C7.49159 18.1 2.15448 5.3434 1.9491 2.90507C2.02014 2.89873 2.99793 2.90253 5.23765 2.90127Z",fill:"#D8D8D8"}))},m=function(){return l.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M17 2H7C4.23858 2 2 4.23858 2 7V17C2 19.7614 4.23858 22 7 22H17C19.7614 22 22 19.7614 22 17V7C22 4.23858 19.7614 2 17 2Z",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.a.createElement("path",{d:"M16 11.37C16.1234 12.2022 15.9813 13.0522 15.5938 13.799C15.2063 14.5458 14.5932 15.1514 13.8416 15.5297C13.0901 15.9079 12.2385 16.0396 11.4078 15.9059C10.5771 15.7723 9.80977 15.3801 9.21485 14.7852C8.61993 14.1902 8.22774 13.4229 8.09408 12.5922C7.96042 11.7615 8.09208 10.9099 8.47034 10.1584C8.8486 9.40685 9.4542 8.79374 10.201 8.40624C10.9478 8.01874 11.7978 7.87658 12.63 8C13.4789 8.12588 14.2649 8.52146 14.8717 9.1283C15.4785 9.73515 15.8741 10.5211 16 11.37Z",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}),l.a.createElement("path",{d:"M17.5 6.5H17.51",stroke:"#D8D8D8",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"}))},u=function(){return l.a.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("g",{clipPath:"url(#clip0)"},l.a.createElement("path",{d:"M9.14953 24C7.4025 24 5.75484 23.4427 4.38469 22.388C4.12875 22.1911 3.88265 21.9759 3.65297 21.7491C2.05359 20.1684 1.24875 18.0633 1.38703 15.8212C1.49156 14.1267 2.17406 12.4931 3.30984 11.2214C4.81406 9.53719 6.88781 8.60953 9.15 8.60953C9.53859 8.60953 9.93093 8.63859 10.3172 8.69578L10.9172 8.78484V14.1094L9.99328 13.8042C9.72422 13.7152 9.44437 13.6702 9.16125 13.6702C8.44593 13.6702 7.77609 13.9505 7.275 14.4591C6.77625 14.9653 6.50765 15.6347 6.51797 16.3448C6.53156 17.2603 7.0139 18.09 7.80797 18.5653C8.17359 18.7838 8.58984 18.9117 9.01265 18.9352C9.3464 18.9534 9.67593 18.9098 9.99281 18.8053C11.0761 18.4477 11.8041 17.4427 11.8041 16.305L11.8087 10.7831V0H16.8975L16.9036 0.696562C16.9064 1.01203 16.9387 1.3275 16.9997 1.63313C17.2387 2.835 17.9128 3.90609 18.8977 4.64859C19.7719 5.30813 20.8153 5.65641 21.9141 5.65641C21.9398 5.65641 21.9398 5.65641 22.1747 5.67281L22.8286 5.71875V10.0312V10.7344L22.5942 10.7339H22.1269C22.1231 10.7339 22.1194 10.7339 22.1152 10.7339H21.8906C21.8897 10.7339 21.8883 10.7339 21.8869 10.7339C20.5317 10.7339 19.2619 10.4756 18.0033 9.94453C17.6283 9.78609 17.2631 9.60516 16.9106 9.40313L16.9266 16.3317C16.9181 18.3811 16.1081 20.3034 14.6461 21.7486C13.4597 22.9209 11.9625 23.67 10.3162 23.9137C9.93234 23.9709 9.54 24 9.14953 24ZM9.14953 10.0158C7.29375 10.0158 5.59219 10.7766 4.35844 12.158C3.43219 13.1953 2.87531 14.527 2.79 15.9075C2.6775 17.738 3.33469 19.4573 4.64109 20.7483C4.83 20.9348 5.03203 21.1116 5.24203 21.2733C6.36422 22.1372 7.71562 22.5938 9.14953 22.5938C9.47109 22.5938 9.79406 22.5698 10.1105 22.523C11.4591 22.3233 12.6858 21.7097 13.658 20.7488C14.8523 19.5684 15.5137 17.9995 15.5208 16.3308L15.4987 6.65625L16.6345 7.53234C17.2209 7.98469 17.8659 8.36063 18.5508 8.64984C19.4869 9.045 20.4305 9.26437 21.4219 9.31641V7.04531C20.1966 6.95344 19.0392 6.51797 18.0506 5.77219C16.7897 4.82156 15.9267 3.44906 15.6202 1.90828C15.5873 1.74281 15.5606 1.57547 15.5409 1.40672H13.2145V10.7836L13.2098 16.3055C13.2098 18.0506 12.0942 19.5919 10.4334 20.1403C9.94922 20.3002 9.44531 20.3667 8.93531 20.3391C8.28562 20.3034 7.64625 20.107 7.08562 19.7719C5.87015 19.0448 5.13187 17.7712 5.11125 16.3655C5.09531 15.2761 5.50734 14.2486 6.27234 13.4719C7.03969 12.6928 8.06531 12.2639 9.16031 12.2639C9.2775 12.2639 9.39375 12.2691 9.51 12.2789V10.0256C9.39 10.0191 9.26953 10.0158 9.14953 10.0158Z",fill:"#D8D8D8"})),l.a.createElement("defs",null,l.a.createElement("clipPath",{id:"clip0"},l.a.createElement("rect",{width:"24",height:"24",fill:"white"}))))},d=function(){return l.a.createElement("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M21.3389 3.66113C18.9779 1.30024 15.8389 0 12.5 0C9.16113 0 6.02212 1.30024 3.66113 3.66113C1.30024 6.02212 0 9.16113 0 12.5C0 15.8389 1.30024 18.9779 3.66113 21.3389C6.02212 23.6998 9.16113 25 12.5 25C15.8389 25 18.9779 23.6998 21.3389 21.3389C23.6998 18.9779 25 15.8389 25 12.5C25 9.16113 23.6998 6.02212 21.3389 3.66113ZM20.303 20.303C18.2188 22.3873 15.4476 23.5352 12.5 23.5352C9.55239 23.5352 6.78125 22.3873 4.69697 20.303C2.6127 18.2188 1.46484 15.4476 1.46484 12.5C1.46484 9.55239 2.6127 6.78125 4.69697 4.69697C6.78125 2.6127 9.55239 1.46484 12.5 1.46484C15.4476 1.46484 18.2188 2.6127 20.303 4.69697C22.3873 6.78125 23.5352 9.55239 23.5352 12.5C23.5352 15.4476 22.3873 18.2188 20.303 20.303Z",fill:"#D8D8D8"}),l.a.createElement("path",{d:"M12.8117 8.03738C10.223 7.79783 7.52496 8.01512 5.0087 8.6659L5.37549 10.0841C7.73004 9.47518 10.2547 9.27191 12.6766 9.49598C15.2774 9.73675 17.6816 10.4755 19.6293 11.6323L20.3773 10.3729C18.2439 9.10565 15.6277 8.29808 12.8117 8.03738Z",fill:"#D8D8D8"}),l.a.createElement("path",{d:"M5.92905 12.1034L6.28837 13.5235C6.48847 13.4729 8.31245 13.0308 10.7105 13.0588C13.4828 13.0924 15.9054 13.7156 17.9111 14.9113L18.6611 13.6531C13.2002 10.3974 6.65712 11.9192 5.92905 12.1034Z",fill:"#D8D8D8"}),l.a.createElement("path",{d:"M6.94981 15.5496L7.25167 16.9829C11.9589 15.9917 14.8954 17.2733 16.2268 18.1256L17.0165 16.8918C15.5616 15.9605 13.8333 15.3995 11.8795 15.2244C10.3259 15.0851 8.6213 15.1975 6.94981 15.5496Z",fill:"#D8D8D8"}))},p=function(){return l.a.createElement("svg",{width:"25",height:"25",viewBox:"0 0 25 25",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{d:"M17.3029 4.7872C17.2344 4.7872 16.997 4.82096 16.7753 4.86202C15.7951 5.04484 10.0173 6.22243 9.91859 6.25991C9.76581 6.31771 9.6146 6.45475 9.54293 6.60052L9.48214 6.72411C9.48214 6.72411 9.45353 15.466 9.40918 15.5642C9.34195 15.7142 9.19246 15.8559 9.0547 15.9011C8.98947 15.9226 8.73126 15.982 8.48107 16.0329C7.32192 16.2689 6.89134 16.439 6.52699 16.8051C6.32014 17.0128 6.16693 17.2965 6.1007 17.594C6.03747 17.8785 6.05878 18.3042 6.1489 18.563C6.33716 19.103 6.75458 19.4859 7.31677 19.6332C7.84749 19.7721 8.84084 19.6175 9.3491 19.3169C9.56124 19.1912 9.83447 18.9274 9.97667 18.7105C10.0329 18.6247 10.1176 18.4517 10.1648 18.3263C10.3303 17.8865 10.3354 10.0551 10.3566 9.95636C10.3924 9.78913 10.5042 9.66653 10.6583 9.62505C10.7971 9.58757 16.3607 8.46176 16.5172 8.43944C16.6646 8.41856 16.8038 8.47106 16.8707 8.57319C16.9159 8.642 17.0281 14.0448 16.8764 14.2247C16.7663 14.3558 16.537 14.4062 15.9717 14.5246C15.1112 14.7042 14.8167 14.7895 14.4874 14.9541C14.0758 15.1598 13.8473 15.3853 13.6708 15.7595C13.5461 16.0242 13.4993 16.2227 13.4997 16.4862C13.5004 16.9574 13.6594 17.3258 14.0177 17.6861C14.2639 17.9339 14.4891 18.0638 14.7996 18.1369C15.1485 18.2191 15.8592 18.1649 16.3453 18.019C17.0332 17.8124 17.5189 17.3118 17.7179 16.6045C17.7566 16.4663 17.7764 16.3241 17.7765 16.1807C17.7775 14.6273 17.7824 5.20935 17.7618 5.13796C17.697 4.91437 17.53 4.78677 17.3029 4.7872Z",fill:"#D8D8D8"}),l.a.createElement("path",{d:"M12.4878 0.769043C6.01559 0.769043 0.769043 6.01559 0.769043 12.4878C0.769043 18.96 6.01559 24.2065 12.4878 24.2065C18.96 24.2065 24.2065 18.96 24.2065 12.4878C24.2065 6.01559 18.96 0.769043 12.4878 0.769043ZM12.4878 23.2222C6.55947 23.2222 1.75338 18.4161 1.75338 12.4878C1.75338 6.55947 6.55947 1.75338 12.4878 1.75338C18.4161 1.75338 23.2222 6.55947 23.2222 12.4878C23.2222 18.4161 18.4161 23.2222 12.4878 23.2222Z",fill:"#D8D8D8"}))},E=function(){return l.a.createElement("svg",{width:"18",height:"18",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66667 11.3333C6.66667 11.7333 6.4 12 6 12H4C1.8 12 0 10.2 0 8C0 5.8 1.8 4 4 4H6C6.4 4 6.66667 4.26667 6.66667 4.66667C6.66667 5.06667 6.4 5.33333 6 5.33333H4C2.53333 5.33333 1.33333 6.53333 1.33333 8C1.33333 9.46667 2.53333 10.6667 4 10.6667H6C6.4 10.6667 6.66667 10.9333 6.66667 11.3333ZM12 4H10C9.6 4 9.33333 4.26667 9.33333 4.66667C9.33333 5.06667 9.6 5.33333 10 5.33333H12C13.4667 5.33333 14.6667 6.53333 14.6667 8C14.6667 9.46667 13.4667 10.6667 12 10.6667H10C9.6 10.6667 9.33333 10.9333 9.33333 11.3333C9.33333 11.7333 9.6 12 10 12H12C14.2 12 16 10.2 16 8C16 5.8 14.2 4 12 4ZM5.33333 8.66667C4.93333 8.66667 4.66667 8.4 4.66667 8C4.66667 7.6 4.93333 7.33333 5.33333 7.33333H10.6667C11.0667 7.33333 11.3333 7.6 11.3333 8C11.3333 8.4 11.0667 8.66667 10.6667 8.66667H5.33333Z",fill:"#FF9F43"}),l.a.createElement("mask",{id:"mask0","mask-type":"alpha",maskUnits:"userSpaceOnUse",x:"0",y:"4",width:"16",height:"8"},l.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.66667 11.3333C6.66667 11.7333 6.4 12 6 12H4C1.8 12 0 10.2 0 8C0 5.8 1.8 4 4 4H6C6.4 4 6.66667 4.26667 6.66667 4.66667C6.66667 5.06667 6.4 5.33333 6 5.33333H4C2.53333 5.33333 1.33333 6.53333 1.33333 8C1.33333 9.46667 2.53333 10.6667 4 10.6667H6C6.4 10.6667 6.66667 10.9333 6.66667 11.3333ZM12 4H10C9.6 4 9.33333 4.26667 9.33333 4.66667C9.33333 5.06667 9.6 5.33333 10 5.33333H12C13.4667 5.33333 14.6667 6.53333 14.6667 8C14.6667 9.46667 13.4667 10.6667 12 10.6667H10C9.6 10.6667 9.33333 10.9333 9.33333 11.3333C9.33333 11.7333 9.6 12 10 12H12C14.2 12 16 10.2 16 8C16 5.8 14.2 4 12 4ZM5.33333 8.66667C4.93333 8.66667 4.66667 8.4 4.66667 8C4.66667 7.6 4.93333 7.33333 5.33333 7.33333H10.6667C11.0667 7.33333 11.3333 7.6 11.3333 8C11.3333 8.4 11.0667 8.66667 10.6667 8.66667H5.33333Z",fill:"white"})))}},484:function(e,t,a){"use strict";a.d(t,"f",(function(){return m})),a.d(t,"e",(function(){return u})),a.d(t,"g",(function(){return d})),a.d(t,"d",(function(){return p})),a.d(t,"a",(function(){return E})),a.d(t,"i",(function(){return f})),a.d(t,"h",(function(){return g})),a.d(t,"b",(function(){return C})),a.d(t,"c",(function(){return v}));var n=a(2),l=a(384),r=a(23),c=a(28),s=a(22),i=a(425),o=a(70),m=function(e,t){return function(a){a(Object(c.e)("release-detail")),l.b.getById(e,t).then((function(e){var t=e.data.release||{},l=Object(n.a)(Object(n.a)({},t),{},{project:t.project||{},type:t.type||{},cover:t.cover||{},genre:t.genre||{},tracks:t.tracks.data||[],subgenre:t.subgenre||{},divider_artists:t.divider_artists||[]});a({type:r.h,payload:l})})).finally((function(){a(Object(c.g)("release-detail"))}))}},u=function(e,t){return function(a){a(Object(c.e)("release-form")),l.b.getByCode(e,t).then((function(e){var t=e.data.release||{},l=Object(n.a)(Object(n.a)({},t),{},{project:t.project||{},type:t.type||{},genre:t.genre||{},cover:t.cover||{},tracks:t.tracks.data||[],subgenre:t.subgenre||{},divider_artists:t.divider_artists||[]});a({type:r.h,payload:l})})).catch((function(e){s.a.push("/")})).finally((function(){a(Object(c.g)("release-form"))}))}},d=function(){return function(e){e(Object(c.e)("release-form")),l.d.index({}).then((function(t){var a=t.data.types.data;e({type:r.l,payload:a})})).finally((function(){e(Object(c.g)("release-form"))}))}},p=function(e){return function(t){t(Object(c.e)("release-form")),l.a.index({genre:e}).then((function(a){var n=a.data.genres.data;t(e?{type:r.k,payload:n}:{type:r.j,payload:n})})).finally((function(){t(Object(c.g)("release-form"))}))}},E=function(e){return function(t){t(Object(c.e)("release-detail")),l.b.remove(e).then((function(e){s.a.push("/releases")})).finally((function(){t(Object(c.g)("release-detail"))}))}},f=function(e,t){return function(a,s){return new Promise((function(i){a(Object(c.e)("release-detail")),l.c.update({tracks:t.tracks},e).then((function(o){l.b.update(t,e).then((function(e){var t=s().releaseInfo.params;a(Object(c.b)(r.m,"params",Object(n.a)(Object(n.a)({},t),{},{isEdited:!1}))),i(o)}))})).finally((function(){a(Object(c.g)("release-detail"))}))}))}},g=function(e,t){return function(a){return new Promise((function(n){a(Object(c.e)("release-form")),l.c.updateByCode({tracks:t.tracks},e).then((function(a){l.b.updateByCode(t,e).then((function(e){n(e)}))})).finally((function(){a(Object(c.g)("release-form"))}))}))}},C=function(e){return function(t){t(Object(c.e)("release-detail")),l.b.generateCode(e).then((function(e){var a=e.data.release.link||"",n=document.createElement("textarea");document.body.appendChild(n),n.value="https://arimo.ru/release-form/"+a,n.select(),document.execCommand("copy"),document.body.removeChild(n),t(Object(c.d)("\u0421\u0441\u044b\u043b\u043a\u0430 \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u043d\u0430","success"))})).finally((function(){t(Object(c.g)("release-detail"))}))}},v=function(e){return function(t){t(Object(c.e)("release-detail")),i.a.getDownloadLink(e).then((function(e){var t=e.data.file.link||"";window.open(o.a+"files/download/"+t)})).finally((function(){t(Object(c.g)("release-detail"))}))}}},807:function(e,t,a){e.exports=a.p+"static/media/release-form-logo.86d54ebc.svg"},808:function(e,t,a){"use strict";a.r(t);var n=a(100),l=a(0),r=a.n(l),c=(a(385),a(498)),s=a(514),i=a(17),o=a(484),m=a(314),u=a(807),d=a.n(u),p=a(2),E=a(499),f=a(500),g=a(501),C=a(302),v=a(502),h=a(503),N=a(392),y=a(107),b=a(414),k=a(28),j=a(23),x=(a(70),function(e){var t=e.data,a=e.activeStage,n=e.stages,l=e.params,c=e.isEdited,s=e.releaseId,i=e.setFieldData,o=e.setActiveStage,m=function(e){var t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t)};return r.a.createElement("div",null,r.a.createElement(E.a,{className:"pb-0 pt-2 card-bdy"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{xl:4,className:"d-flex align-items-center col-1800 col-1620"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0418\u041c\u042f \u0410\u0420\u0422\u0418\u0421\u0422\u0410"),r.a.createElement("span",{id:"artist-name-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"artist-name-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement(h.a,{type:"text",defaultValue:t.project.name||"",id:"artist-name",name:"artist-name",disabled:!0}))))),r.a.createElement(g.a,null)),r.a.createElement(f.a,{className:"mt-3"},r.a.createElement(g.a,{className:"d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0421\u043e\u0446\u0441\u0435\u0442\u0438 \u0430\u0440\u0442\u0438\u0441\u0442\u0430"),r.a.createElement("span",{id:"artist-socials-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"artist-socials-tooltip"},"Hello World!"))))),r.a.createElement(f.a,{className:"mt-sm-2"},r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.i,null),r.a.createElement("span",{className:"socials-name"},"\u0412\u043a\u043e\u043d\u0442\u0430\u043a\u0442\u0435"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_socials&&t.artist_socials.vkontakte||"",onChange:function(e){return i(j.i,"artist_socials",Object(p.a)(Object(p.a)({},t.artist_socials),{},{vkontakte:e.target.value}))},id:"socials-vkontakte",name:"socials-vkontakte"}),r.a.createElement("div",{onClick:function(){return m(t.artist_socials&&t.artist_socials.vkontakte)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null))))))),r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.b,null),r.a.createElement("span",{className:"socials-name"},"Facebook"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_socials&&t.artist_socials.facebook||"",onChange:function(e){return i(j.i,"artist_socials",Object(p.a)(Object(p.a)({},t.artist_socials),{},{facebook:e.target.value}))},id:"socials-facebook",name:"socials-facebook"}),r.a.createElement("div",{onClick:function(){return m(t.artist_socials&&t.artist_socials.facebook)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null)))))))),r.a.createElement(f.a,{className:"mt-sm-2"},r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.g,null),r.a.createElement("span",{className:"socials-name"},"TikTok"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_socials&&t.artist_socials.tiktok||"",onChange:function(e){return i(j.i,"artist_socials",Object(p.a)(Object(p.a)({},t.artist_socials),{},{tiktok:e.target.value}))},id:"socials-tiktok",name:"socials-tiktok"}),r.a.createElement("div",{onClick:function(){return m(t.artist_socials&&t.artist_socials.tiktok)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null))))))),r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.c,null),r.a.createElement("span",{className:"socials-name"},"Instagram"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_socials&&t.artist_socials.instagram||"",onChange:function(e){return i(j.i,"artist_socials",Object(p.a)(Object(p.a)({},t.artist_socials),{},{instagram:e.target.value}))},id:"socials-instagram",name:"socials-instagram"}),r.a.createElement("div",{onClick:function(){return m(t.artist_socials&&t.artist_socials.instagram)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null)))))))),r.a.createElement(f.a,{className:"mt-sm-2"},r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.h,null),r.a.createElement("span",{className:"socials-name"},"Twitter"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_socials&&t.artist_socials.twitter||"",onChange:function(e){return i(j.i,"artist_socials",Object(p.a)(Object(p.a)({},t.artist_socials),{},{twitter:e.target.value}))},id:"socials-twitter",name:"socials-twitter"}),r.a.createElement("div",{onClick:function(){return m(t.artist_socials&&t.artist_socials.twitter)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null))))))),r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.j,null),r.a.createElement("span",{className:"socials-name"},"Youtube"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_socials&&t.artist_socials.youtube||"",onChange:function(e){return i(j.i,"artist_socials",Object(p.a)(Object(p.a)({},t.artist_socials),{},{youtube:e.target.value}))},id:"socials-youtube",name:"socials-youtube"}),r.a.createElement("div",{onClick:function(){return m(t.artist_socials&&t.artist_socials.youtube)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null)))))))),r.a.createElement(f.a,{className:"mt-3"},r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0421\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u043c\u0430\u0433\u0430\u0437\u0438\u043d\u044b"),r.a.createElement("span",{id:"socials-link-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"socials-link-tooltip"},"Hello World!"))))),r.a.createElement(f.a,{className:"mt-1 mt-sm-2"},r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.f,null),r.a.createElement("span",{className:"socials-name"},"Spotify"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_shops&&t.artist_shops.spotify||"",onChange:function(e){return i(j.i,"artist_shops",Object(p.a)(Object(p.a)({},t.artist_shops),{},{spotify:e.target.value}))},id:"socials-spotify",name:"socials-spotify"}),r.a.createElement("div",{onClick:function(){return m(t.artist_shops&&t.artist_shops.spotify)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null)))))),r.a.createElement(f.a,{className:"mt-1 mt-sm-2"},r.a.createElement(g.a,{lg:4,className:"col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement(b.d,null),r.a.createElement("span",{className:"socials-name"},"Itunes"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.artist_shops&&t.artist_shops.itunes||"",onChange:function(e){return i(j.i,"artist_shops",Object(p.a)(Object(p.a)({},t.artist_shops),{},{itunes:e.target.value}))},id:"socials-itunes",name:"socials-itunes"}),r.a.createElement("div",{onClick:function(){return m(t.artist_shops&&t.artist_shops.itunes)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null))))))),r.a.createElement(g.a,{sm:6,className:"mt-1 mt-sm-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0414\u043e\u043f. \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f"),r.a.createElement("span",{id:"artist-description-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"artist-description-tooltip"},"Hello World!"))))),r.a.createElement(f.a,{className:"mt-sm-2"},r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement(h.a,{type:"textarea",onChange:function(e){return i(j.i,"artist_description",e.target.value)},value:t.artist_description||"",id:"artist-description",name:"artist-description"}))))))),r.a.createElement(N.a,{className:"border-0 pt-0 d-flex flex-wrap w-100 mt-3 ".concat(c&&s?"justify-content-between":"justify-content-end")},c&&s&&r.a.createElement(y.a.Ripple,{className:"mt-1 cursor-pointer",onClick:function(){return i(j.m,"params",Object(p.a)(Object(p.a)({},l),{},{isEdited:!1}))},color:"danger"},"\u0412\u044b\u0445\u043e\u0434"),r.a.createElement(y.a.Ripple,{className:"mt-1 cursor-pointer",onClick:function(){o(a+1<n.length?a+1:n.length-1)},color:"primary"},"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433")))}),w=a(472),_=a(443),O=a(444),D=a(376),H=a(339),L=a.n(H),I=a(340),M=(a(341),a(342),a(48)),R=a(119),B=a(154),W=function(e){var t=e.date,a=e.invalid,n=e.setFieldData,l=t?Object(M.e)(t):"";return r.a.createElement("div",{className:"flatpickr-groups"},r.a.createElement("div",{className:"flatpickr-group ".concat(a?"is-invalid":"")},r.a.createElement(L.a,{className:"form-control",value:new Date(l),options:{dateFormat:"d-m-Y",locale:I.Russian},onChange:function(e){l||(l=new Date),n(Object(M.j)(new Date(e[0].getFullYear(),e[0].getMonth(),e[0].getDate(),l.getHours(),l.getMinutes(),0)))}}),r.a.createElement("div",{className:"flatpickr-group-icon"},r.a.createElement(R.a,{size:16}))),r.a.createElement("div",{className:"flatpickr-group ".concat(a?"is-invalid":"")},r.a.createElement(L.a,{options:{enableTime:!0,noCalendar:!0,dateFormat:"H:i",time_24hr:!0},onChange:function(e){l||(l=new Date),n(Object(M.j)(new Date(l.getFullYear(),l.getMonth(),l.getDate(),e[0].getHours(),e[0].getMinutes(),0)))},value:new Date(l),className:"form-control"}),r.a.createElement("div",{className:"flatpickr-group-icon"},r.a.createElement(B.a,{size:16}))))},F=a(308),Z=(a(448),a(347),a(333),a(35),a(59),a(426)),P=(a(56),a(574)),S=a(509),q=a(510),V=a(511),A=a(157),T=a(180),z=function(e){var t=e.setIsAddArtists,a=e.isAddArtists,c=e.data,s=e.setFieldData,i=Object(l.useState)(""),o=Object(n.a)(i,2),m=o[0],u=o[1],d=Object(l.useState)(null),p=Object(n.a)(d,2),E=p[0],f=p[1],g=Object(l.useState)(c.divider_artists||[]),C=Object(n.a)(g,2),N=C[0],b=C[1],k=Object(l.useState)(!1),x=Object(n.a)(k,2),w=x[0],D=x[1];return r.a.createElement(P.a,{isOpen:a,toggle:function(){return t(!1)},size:"md"},r.a.createElement(S.a,{toggle:function(){return t(!1)}},"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0440\u0442\u0438\u0441\u0442\u0430"),r.a.createElement(q.a,null,r.a.createElement("div",null,r.a.createElement(v.a,null,r.a.createElement(_.a,null,r.a.createElement(h.a,{type:"text",value:m,onChange:function(e){return u(e.target.value)},id:"artist-divide-name",name:"artist-divide-name",invalid:w}),r.a.createElement(O.a,{addonType:"prepend"},null===E&&r.a.createElement(y.a,{onClick:function(){if(""!==m.trim()){var e=N.concat();e.unshift(m),b(e),D(!1),u("")}else D(!0)},color:"primary"},"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"),null!==E&&r.a.createElement(y.a,{onClick:function(){if(""!==m.trim()){var e=N.concat();e[E]=m,b(e),D(!1),f(null),u("")}else D(!0)},color:"primary"},"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c"))),w?r.a.createElement("span",{className:"invalid-tooltip d-block"},"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0430\u0440\u0442\u0438\u0441\u0442\u0430"):"")),r.a.createElement("div",{className:"mt-3"},N&&N.map((function(e,t){return r.a.createElement("div",{key:t,className:"d-flex h-100 mt-2"},r.a.createElement("span",{className:"artist-divide-name flex-grow-1 flex-shrink-1 p-1"},e),r.a.createElement("div",{className:"d-flex align-items-center pl-1"},r.a.createElement(y.a.Ripple,{onClick:function(){return function(e,t){u(e),f(t)}(e,t)},className:"p-1",color:"flat-primary"},r.a.createElement(A.a,{size:18})),r.a.createElement(y.a.Ripple,{onClick:function(){return function(e){if(null!==E)return!1;var t=N.concat();t.splice(e,1),b(t)}(t)},disabled:null!==E,className:"p-1",color:"flat-danger"},r.a.createElement(T.a,{size:18}))))})))),r.a.createElement(V.a,null,r.a.createElement(y.a.Ripple,{color:"danger",type:"submit",onClick:function(){return t(!1)}},"\u041e\u0442\u043c\u0435\u043d\u0438\u0442\u044c"),r.a.createElement(y.a.Ripple,{disabled:null!==E,color:"primary",type:"submit",onClick:function(){if(null!==E)return!1;s(j.i,"divider_artists",N),t(!1)}},"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c")))},Y=function(e){var t=e.data,a=e.activeStage,c=e.stages,s=e.types,i=e.genres,o=e.subgenres,m=e.verifyId,u=e.setFieldData,d=e.setActiveStage,k=Object(l.useState)({name:!1,budget:!1,type:!1,release_link:!1,entry_year:!1,genre:!1,subgenre:!1,releases_date:!1,cover:!1,divider_artists:!1}),x=Object(n.a)(k,2),H=x[0],L=x[1],I=Object(l.useState)(!1),M=Object(n.a)(I,2),R=M[0],B=M[1],P=new Array((new Date).getFullYear()-1950).fill(0).map((function(e,t){return{value:(new Date).getFullYear()-t,label:(new Date).getFullYear()-t}})),S=function(e){var t=document.createElement("textarea");document.body.appendChild(t),t.value=e,t.select(),document.execCommand("copy"),document.body.removeChild(t)};return r.a.createElement("div",null,r.a.createElement(z,{setFieldData:u,setIsAddArtists:B,isAddArtists:R,data:t}),r.a.createElement(E.a,{className:"pb-0 pt-2 card-bdy"},r.a.createElement(f.a,null,r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043b\u0438\u0437\u0430"),r.a.createElement("span",{id:"release-name-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"release-name-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement(h.a,{type:"text",value:t.name||"",onChange:function(e){return u(j.i,"name",e.target.value)},id:"release-name",name:"release-name",className:"colored-input",invalid:H.name}),H.name?r.a.createElement("span",{className:"invalid-tooltip d-block"},"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043b\u0438\u0437\u0430"):"")))),r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0414\u0430\u0442\u0430 \u0440\u0435\u043b\u0438\u0437\u0430"),r.a.createElement("span",{id:"release-date-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"release-date-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(W,{invalid:H.releases_date,setFieldData:function(e){return u(j.i,"releases_date",e)},date:t.releases_date}))))),r.a.createElement(f.a,{className:"mt-md-3"},r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0422\u0438\u043f \u0440\u0435\u043b\u0438\u0437\u0430"),r.a.createElement("span",{id:"release-type-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"release-type-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(F.a,{classNamePrefix:"select",value:t.type&&Object(p.a)(Object(p.a)({},t.type),{},{value:t.type.id,label:t.type.name}),name:"color",onChange:function(e){return u(j.i,"type",e)},className:"".concat(H.type?"invalid-select":""," React"),options:s&&s.map((function(e){return Object(p.a)(Object(p.a)({},e),{},{value:e.id,label:e.name})}))})))),r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0414\u0430\u0442\u0430 \u043f\u0440\u0435\u0434\u0440\u0435\u043b\u0438\u0437\u0430"),r.a.createElement("span",{id:"prerelease-date-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"prerelease-date-tooltip"},"Hello World!")))),r.a.createElement(g.a,null,r.a.createElement(W,{setFieldData:function(e){return u(j.i,"prereleases_date",e)},date:t.prereleases_date}))))),r.a.createElement(f.a,{className:"mt-md-3"},r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0416\u0430\u043d\u0440"),r.a.createElement("span",{id:"genre-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"genre-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(F.a,{classNamePrefix:"select",value:t.genre&&Object(p.a)(Object(p.a)({},t.genre),{},{value:t.genre.id,label:t.genre.name}),name:"color",onChange:function(e){u(j.i,"subgenre",null),u(j.i,"genre",e)},className:"".concat(H.genre?"invalid-select":""," React"),options:i&&i.map((function(e){return Object(p.a)(Object(p.a)({},e),{},{value:e.id,label:e.name})}))})))),r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u041f\u043e\u0434\u0436\u0430\u043d\u0440"),r.a.createElement("span",{id:"subgenre-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"subgenre-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(F.a,{classNamePrefix:"select",value:t.subgenre&&Object(p.a)(Object(p.a)({},t.subgenre),{},{value:t.subgenre.id,label:t.subgenre.name}),name:"color",onChange:function(e){return u(j.i,"subgenre",e)},className:"".concat(H.subgenre?"invalid-select":""," React"),options:o&&o.map((function(e){return Object(p.a)(Object(p.a)({},e),{},{value:e.id,label:e.name})}))}))))),r.a.createElement(f.a,{className:"mt-md-3"},r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u0440\u0435\u043b\u0438\u0437"),r.a.createElement("span",{id:"release-link-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"release-link-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.release_link||"",onChange:function(e){return u(j.i,"release_link",e.target.value)},id:"release-link",invalid:H.release_link,name:"release-link"}),!H.release_link&&r.a.createElement("div",{onClick:function(){return S(t.release_link)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null))),H.release_link?r.a.createElement("span",{className:"invalid-tooltip d-block"},"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0441\u0441\u044b\u043b\u043a\u0443 \u043d\u0430 \u0440\u0435\u043b\u0438\u0437"):"")))),r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0413\u043e\u0434 \u0437\u0430\u043f\u0438\u0441\u0438"),r.a.createElement("span",{id:"entry_year-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"entry_year-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(F.a,{classNamePrefix:"select",value:t.entry_year&&{value:t.entry_year,label:t.entry_year},name:"color",onChange:function(e){return u(j.i,"entry_year",e.value)},className:"".concat(H.entry_year?"invalid-select":""," React colored-input"),options:P}))))),r.a.createElement(f.a,{className:"mt-md-3"},r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{xl:5,className:"d-flex col-1800 col-1620"},r.a.createElement("div",null,r.a.createElement("span",{className:"name"},"\u041e\u0431\u043b\u043e\u0436\u043a\u0430"),r.a.createElement("span",{id:"cover-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"cover-tooltip"},"Hello World!")),m&&r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(Z.a,{verifyId:m,withoutAuth:!0,userId:t.project.owner.id,invalid:H.cover,type:"Release",file:t.cover,fileUploaded:function(e){u(j.i,"cover",e)}})))),r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0421\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043f\u0440\u043e\u043c\u043e"),r.a.createElement("span",{id:"promo_link-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"promo_link-tooltip"},"Hello World!")))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement("div",{className:"position-relative"},r.a.createElement(h.a,{type:"text",className:"colored-input",value:t.promo_link||"",onChange:function(e){return u(j.i,"promo_link",e.target.value)},id:"promo_link",name:"promo_link"}),r.a.createElement("div",{onClick:function(){return S(t.promo_link)},className:"copy-icon",tabIndex:"0"},r.a.createElement(b.a,null)))))))),r.a.createElement(f.a,{className:"mt-md-3"},r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0414\u0435\u043b\u0438\u0442\u044c \u0432\u044b\u043f\u043b\u0430\u0442\u044b"),r.a.createElement("span",{id:"divide-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"divide-tooltip"},"Hello World!")))),r.a.createElement(g.a,null,r.a.createElement("div",{className:"d-flex"},r.a.createElement("div",{className:"h-100 d-flex align-items-center mr-1"},r.a.createElement(w.a,{id:1e3*Math.random(),type:"switch",className:"".concat(H.divider_artists?"custom-switch-danger":"custom-switch-primary"),checked:t.divide,onChange:function(e){return u(j.i,"divide",e.target.checked)},name:"primary"})),r.a.createElement("span",{onClick:function(){return B(!0)},className:"".concat(H.divider_artists?"text-danger":"text-primary"," cursor-pointer")},"\u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0430\u0440\u0442\u0438\u0441\u0442\u043e\u0432"))))),r.a.createElement(g.a,{md:6,className:"mt-1 mt-md-0"},r.a.createElement(f.a,null,r.a.createElement(g.a,{sm:6,md:12,lg:6,xl:5,className:"col-1800 col-1620 d-flex align-items-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0411\u044e\u0434\u0436\u0435\u0442 \u043d\u0430 \u043f\u0440\u043e\u043c\u043e"),r.a.createElement("span",{id:"budget-promo-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"budget-promo-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,null,r.a.createElement(v.a,null,r.a.createElement(_.a,null,r.a.createElement(h.a,{type:"number",className:"colored-input",value:t.budget||"",onChange:function(e){return u(j.i,"budget",e.target.value)},id:"budget",name:"budget",min:"0",invalid:H.budget}),r.a.createElement(O.a,{addonType:"append"},r.a.createElement(D.a,null,"\u0440\u0443\u0431."))),H.budget?r.a.createElement("span",{className:"invalid-tooltip d-block"},"\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u0431\u044e\u0434\u0436\u0435\u0442"):"")))))),r.a.createElement(N.a,{className:"border-0 pt-0 d-flex justify-content-between flex-wrap w-100 mt-3"},r.a.createElement(y.a.Ripple,{className:"cursor-pointer mt-1",onClick:function(){d(a-1>=0?a-1:0)},outline:!0,color:"primary"},"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0448\u0430\u0433"),r.a.createElement(y.a.Ripple,{className:"cursor-pointer mt-1",onClick:function(){var e=Object(p.a)(Object(p.a)({},H),{},{name:null==t.name||""===t.name.trim(),budget:t.budget<0||!t.budget,type:null==t.type||!t.type.id,release_link:null==t.release_link||""===t.release_link.trim(),entry_year:null==t.entry_year,genre:null==t.genre||!t.genre.id,subgenre:null==t.subgenre||!t.subgenre.id,releases_date:null==t.releases_date,cover:null==t.cover||!t.cover.id,divider_artists:!!t.divide&&0===t.divider_artists.length});L(e),Object.values(e).some((function(e){return e}))||d(a+1<c.length?a+1:c.length-1)},color:"primary"},"\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0448\u0430\u0433")))},U=a(391),G=a(552),K=a(8),J=a(179),Q=a(171),X=a(169),$=function(e){var t=e.value,a=e.id,c=e.collapse,s=e.setFieldIdData,i=Object(l.useState)({track_composer:!1,text_composer:!1,together_with:!1}),o=Object(n.a)(i,2),m=o[0],u=o[1],d=function(e){var n=""===t[e][t[e].length-1].trim();u(Object(p.a)(Object(p.a)({},m),{},Object(K.a)({},e,n))),n||s(j.c,e,"",a)},E=function(e,t){s(j.e,t,e,a)},C=function(e,t){"Enter"===e.key&&d(t)};return r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex justify-content-center"},!c&&r.a.createElement("span",{className:"mt-1 mr-1"},a+1,")"),r.a.createElement(v.a,null,r.a.createElement(h.a,{type:"text",value:t.name||"",id:"name-".concat(a),name:"name-".concat(a),className:"colored-input",onChange:function(e){return s(j.f,"name",e.target.value,a)}})),r.a.createElement(J.a,{onClick:function(){s(j.d,null,null,a)},size:18,className:"mt-1 ml-1 text-danger"})),r.a.createElement(g.a,null,r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex justify-content-end align-items-center"},r.a.createElement(v.a,{className:"mr-1"},r.a.createElement(h.a,{type:"text",value:t.track_composer[t.track_composer.length-1]||"",onChange:function(e){return s(j.g,"track_composer",e.target.value,a)},id:"track-composer-".concat(a),name:"track-composer-".concat(a),className:"colored-input",invalid:m.track_composer,onKeyDown:function(e){return C(e,"track_composer")}})),r.a.createElement(Q.a,{onClick:function(){return d("track_composer")},className:"text-primary"}))),t.track_composer&&t.track_composer.filter((function(e,t,a){return t!==a.length-1})).map((function(e,t){return r.a.createElement(f.a,{className:"mt-1",key:t},r.a.createElement(g.a,{className:"d-flex justify-content-end align-items-center"},r.a.createElement(v.a,{className:"mr-1"},r.a.createElement(h.a,{type:"text",value:e||"",id:"track-composer-".concat(t,"-").concat(a),name:"track-composer-".concat(t,"-").concat(a),className:"colored-input",disabled:!0})),r.a.createElement(X.a,{onClick:function(){return E("track_composer",t)},className:"text-danger"})))}))),r.a.createElement(g.a,null,r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex justify-content-end align-items-center"},r.a.createElement(v.a,{className:"mr-1"},r.a.createElement(h.a,{type:"text",value:t.text_composer[t.text_composer.length-1]||"",onChange:function(e){return s(j.g,"text_composer",e.target.value,a)},id:"text-composer-".concat(a),name:"text-composer-".concat(a),className:"colored-input",invalid:m.text_composer,onKeyDown:function(e){return C(e,"text_composer")}})),r.a.createElement(Q.a,{onClick:function(){return d("text_composer")},className:"text-primary"}))),t.text_composer&&t.text_composer.filter((function(e,t,a){return t!==a.length-1})).map((function(e,t){return r.a.createElement(f.a,{className:"mt-1",key:t},r.a.createElement(g.a,{className:"d-flex justify-content-end align-items-center"},r.a.createElement(v.a,{className:"mr-1"},r.a.createElement(h.a,{type:"text",value:e||"",id:"text-composer-".concat(t,"-").concat(a),name:"text-composer-".concat(t,"-").concat(a),className:"colored-input",disabled:!0})),r.a.createElement(X.a,{onClick:function(){return E("text_composer",t)},className:"text-danger"})))}))),r.a.createElement(g.a,null,r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex justify-content-end align-items-center"},r.a.createElement(v.a,{className:"mr-1"},r.a.createElement(h.a,{type:"text",value:t.together_with[t.together_with.length-1]||"",onChange:function(e){return s(j.g,"together_with",e.target.value,a)},id:"together_with-".concat(a),name:"together_with-".concat(a),invalid:m.together_with,onKeyDown:function(e){return C(e,"together_with")}})),r.a.createElement(Q.a,{onClick:function(){return d("together_with")},className:"text-primary"}))),t.together_with&&t.together_with.filter((function(e,t,a){return t!==a.length-1})).map((function(e,t){return r.a.createElement(f.a,{className:"mt-1",key:t},r.a.createElement(g.a,{className:"d-flex justify-content-end align-items-center"},r.a.createElement(v.a,{className:"mr-1"},r.a.createElement(h.a,{type:"text",value:e||"",id:"together_with-".concat(t,"-").concat(a),name:"together_with-".concat(t,"-").concat(a),disabled:!0})),r.a.createElement(X.a,{onClick:function(){return E("together_with",t)},className:"text-danger"})))}))))},ee=function(e){var t=e.data,a=e.activeStage,i=e.isEdited,o=e.releaseId,m=e.code,u=e.setFieldData,d=e.setActiveStage,p=e.setFieldIdData,v=e.setNotification,h=e.updateReleaseByCode,k=e.updateReleaseById,x=Object(l.useState)({matches:window.innerWidth<1024}),w=Object(n.a)(x,2),_=w[0],O=w[1];Object(l.useEffect)((function(){var e=window.matchMedia("(max-width: 1024px)");return e.addListener(O),function(){return e.removeListener(O)}}),[]),Object(l.useEffect)((function(){var e=function(){i&&o&&(document.querySelector(".wrapper").classList.contains("menu-collapsed")||O({matches:window.innerWidth<1640}))};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]);var D=function(){return r.a.createElement(f.a,null,r.a.createElement(g.a,{className:"d-flex justify-content-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u041a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044f"),r.a.createElement("span",{id:"name-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"name-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,{className:"d-flex justify-content-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0410\u0432\u0442\u043e\u0440 \u043c\u0443\u0437\u044b\u043a\u0438"),r.a.createElement("span",{id:"track-composer-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"track-composer-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,{className:"d-flex justify-content-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0410\u0432\u0442\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430"),r.a.createElement("span",{id:"text-composer-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"text-composer-tooltip"},"Hello World!")),r.a.createElement("span",{className:"required"},"*"))),r.a.createElement(g.a,{className:"d-flex justify-content-center"},r.a.createElement("div",{className:"my-auto"},r.a.createElement("span",{className:"name"},"\u0421\u043e\u0432\u043c\u0435\u0441\u0442\u043d\u043e \u0441"),r.a.createElement("span",{id:"together-with-tooltip"},r.a.createElement(b.e,null),r.a.createElement(C.a,{placement:"top",target:"together-with-tooltip"},"Hello World!")))))};return r.a.createElement("div",{className:"TrackList"},r.a.createElement(E.a,{className:"pb-0 pt-2 card-bdy"},_&&!_.matches?r.a.createElement("div",null,r.a.createElement(D,null),t.tracks&&t.tracks.map((function(e,t){return r.a.createElement("div",{className:"".concat(0===t?"":"mt-3"),key:t},r.a.createElement($,{setFieldIdData:p,value:e,id:t}))}))):r.a.createElement("div",{className:"vx-collapse collapse-bordered collapse-icon accordion-icon-rotate"},t.tracks&&t.tracks.map((function(e,t){return r.a.createElement(c.a,{className:"border-0 mb-1"},r.a.createElement(s.a,{className:"collapse-card-header",id:"collapse-".concat(t)},r.a.createElement(U.a,{className:"lead collapse-title collapsed"},e.name||"\u0411\u0435\u0437 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u044f")),r.a.createElement(G.a,{toggler:"#collapse-".concat(t)},r.a.createElement(E.a,{className:"collapse-card-body"},r.a.createElement("div",{className:"collapse-tracks"},r.a.createElement(D,null),r.a.createElement("div",{className:"".concat(0===t?"":"mt-3"),key:t},r.a.createElement($,{collapse:!0,setFieldIdData:p,value:e,id:t}))))))}))),r.a.createElement("div",{className:"d-flex justify-content-center align-content-end mt-3"},r.a.createElement(y.a.Ripple,{className:"cursor-pointer",onClick:function(){u(j.b,null,null)},color:"danger"},"\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c"))),r.a.createElement(N.a,{className:"border-0 pt-0 d-flex justify-content-between flex-wrap w-100 mt-3"},r.a.createElement(y.a.Ripple,{className:"cursor-pointer mt-1",onClick:function(){d(a-1>=0?a-1:0)},outline:!0,color:"primary"},"\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0439 \u0448\u0430\u0433"),r.a.createElement(y.a.Ripple,{className:"cursor-pointer mt-1",onClick:function(){var e=null;null!==t.tracks&&0!==t.tracks.length?t.tracks.some((function(t,a){return e=a,""===t.name.trim()}))?v("\u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 ".concat(e+1," \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438!"),"error"):t.tracks.some((function(t,a){e=a;var n=t.track_composer[t.track_composer.length-1];return 0===t.track_composer.length||null===n||""===n.trim()}))?v("\u0423 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 ".concat(e+1," \u043d\u0435 \u0432\u0432\u0435\u0434\u0435\u043d \u0430\u0432\u0442\u043e\u0440 \u043c\u0443\u0437\u044b\u043a\u0438!"),"error"):t.tracks.some((function(t,a){e=a;var n=t.text_composer[t.text_composer.length-1];return 0===t.text_composer.length||null===n||""===n.trim()}))?v("\u0423 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u0438 ".concat(e+1," \u043d\u0435 \u0432\u0432\u0435\u0434\u0435\u043d \u0430\u0432\u0442\u043e\u0440 \u0442\u0435\u043a\u0441\u0442\u0430!"),"error"):(t.type_id=t.type.id,t.genre_id=t.genre.id,t.subgenre_id=t.subgenre.id,t.cover_id=t.cover.id,i&&o?k(o,t):h(m,t).then((function(){d(a+1)}))):v("\u0414\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u0443 \u043a\u043e\u043c\u043f\u043e\u0437\u0438\u0446\u0438\u044e!","error")},color:"primary"},"\u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c")))},te=a(22),ae=function(e){var t=e.data;return r.a.createElement("div",null,r.a.createElement(E.a,null,r.a.createElement("div",{className:"card-info"},r.a.createElement("div",null,r.a.createElement("span",{className:"card-name"},"\u0418\u043c\u044f \u0430\u0440\u0442\u0438\u0441\u0442\u0430: "),r.a.createElement("span",{className:"card-description"},t.project.name)),r.a.createElement("div",null,r.a.createElement("span",{className:"card-name"},"\u041d\u0430\u0437\u0432\u0430\u043d\u0438\u0435 \u0440\u0435\u043b\u0438\u0437\u0430: "),r.a.createElement("span",{className:"card-description"},t.name)),r.a.createElement("div",null,r.a.createElement("span",{className:"card-name"},"\u0414\u0430\u0442\u0430 \u0432\u044b\u0445\u043e\u0434\u0430: "),r.a.createElement("span",{className:"card-description"},new Date(1e3*t.releases_date).toLocaleString("ru"))),r.a.createElement("div",null,r.a.createElement("span",{className:"card-name"},"\u041a\u043e\u043b-\u0432\u043e \u0442\u0440\u0435\u043a\u043e\u0432: "),r.a.createElement("span",{className:"card-description"},t.tracks.length)),r.a.createElement("div",null,r.a.createElement("span",{className:"card-name"},"\u0422\u0438\u043f \u0440\u0435\u043b\u0438\u0437\u0430: "),r.a.createElement("span",{className:"card-description"},t.type.name))),r.a.createElement("div",{className:"card-foot mt-1"},"\u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0449\u0435 \u043d\u0435\u0442 \u0434\u043e\u0433\u043e\u0432\u043e\u0440\u0430 \u0441 \u043d\u0430\u0448\u0438\u043c \u043b\u0435\u0439\u0431\u043b\u043e\u043c. \u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435:")),r.a.createElement(N.a,{className:"border-0 pt-0 d-flex justify-content-center flex-wrap w-100"},r.a.createElement("a",{href:"mailto:mgmt@rusproducer.ru"},r.a.createElement(y.a.Ripple,{className:"mt-1 mr-1 cursor-pointer",color:"primary"},"\u041d\u0443\u0436\u0435\u043d \u0434\u043e\u0433\u043e\u0432\u043e\u0440?")),r.a.createElement(y.a.Ripple,{onClick:function(){return te.a.push("/")},className:"mt-1 mr-1 cursor-pointer",color:"danger"},"\u0414\u043e\u0433\u043e\u0432\u043e\u0440 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c")))};t.default=Object(i.b)((function(e){return{reqParams:e.releaseInfo.reqParams,data:e.releaseInfo.release,params:e.releaseInfo.params,types:e.releaseInfo.types,genres:e.releaseInfo.genres,subgenres:e.releaseInfo.subgenres,spinner:e.helper.spinner,owner:e.releaseInfo.release.project.owner&&e.releaseInfo.release.project.owner.id||null,verifyId:e.users.data.verify_id}}),{setFieldData:k.b,setFieldIdData:k.c,getReleaseById:o.f,getReleaseByCode:o.e,getTypes:o.g,getGenres:o.d,setNotification:k.d,updateReleaseById:o.i,updateReleaseByCode:o.h})((function(e){var t=e.isEdited,a=e.releaseId,i=e.spinner,o=e.data,u=e.types,p=e.genres,E=e.subgenres,f=e.params,g=e.getTypes,C=e.getReleaseByCode,v=e.getReleaseById,h=e.getGenres,N=e.setFieldData,y=e.setFieldIdData,b=e.setNotification,k=e.updateReleaseById,j=e.updateReleaseByCode,w=Object(l.useState)(0),_=Object(n.a)(w,2),O=_[0],D=_[1],H=[{title:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e\u0431 \u0430\u0440\u0442\u0438\u0441\u0442\u0435",show:!0},{title:"\u0418\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u043e \u0440\u0435\u043b\u0438\u0437\u0435",show:!0},{title:"\u0422\u0440\u0435\u043a \u043b\u0438\u0441\u0442",show:!0},{title:"\u0421\u043f\u0430\u0441\u0438\u0431\u043e. \u0420\u0435\u043b\u0438\u0437 \u043f\u0440\u0438\u043d\u044f\u0442",show:!1}],L=Object(l.useState)(),I=Object(n.a)(L,2),M=I[0],R=I[1];return Object(l.useEffect)((function(){t&&a?v(a,e.reqParams):(R(e.match.params.code),C(e.match.params.code,e.reqParams))}),[]),Object(l.useEffect)((function(){h(),g()}),[]),Object(l.useEffect)((function(){t||a||(document.getElementsByTagName("body")[0].className+="dark-layout")}),[]),Object(l.useEffect)((function(){o.genre&&h(o.genre.id)}),[o.genre]),r.a.createElement("div",{className:"release-form ".concat(O===H.length-1?"release-form-thanks":"")},i.includes("release-form")&&r.a.createElement(m.a,null),r.a.createElement("div",{className:"release-form-header d-flex flex-column align-items-center w-100"},r.a.createElement("img",{src:d.a,alt:""}),r.a.createElement("span",null,"\u0424\u043e\u0440\u043c\u0430 \u0434\u043b\u044f \u0430\u0440\u0442\u0438\u0441\u0442\u0430")),r.a.createElement(c.a,{className:"mb-0 h-100"},r.a.createElement(s.a,{className:"card-stage-header"},O!==H.length-1?r.a.createElement("div",{className:"d-flex w-100 position-relative"},r.a.createElement("div",{className:"position-absolute card-stage-title"},r.a.createElement("span",{className:"stage-title"},H[O].show?H[O].title:"")),r.a.createElement("div",{className:"mx-auto d-flex stages-numbers"},H.map((function(e,t){return e.show?r.a.createElement("div",{key:t,className:"cursor-pointer stages-number ".concat(t===O?"stages-number-active":"")},r.a.createElement("span",null,t+1," \u0448\u0430\u0433")):""})))):r.a.createElement("div",{className:"d-flex justify-content-center w-100"},r.a.createElement("span",{className:"thanks-header"},"\u0421\u043f\u0430\u0441\u0438\u0431\u043e. \u0420\u0435\u043b\u0438\u0437 \u043f\u0440\u0438\u043d\u044f\u0442"))),0===O&&r.a.createElement(x,{isEdited:t,releaseId:a,params:f,stages:H,setActiveStage:D,activeStage:O,setFieldData:N,data:o}),1===O&&r.a.createElement(Y,{verifyId:e.verifyId,genres:p,subgenres:E,types:u,stages:H,setActiveStage:D,activeStage:O,setFieldData:N,data:o}),2===O&&r.a.createElement(ee,{isEdited:t,releaseId:a,setNotification:b,stages:H,setActiveStage:D,updateReleaseById:k,updateReleaseByCode:j,activeStage:O,code:M,setFieldData:N,setFieldIdData:y,data:o}),O===H.length-1&&r.a.createElement(ae,{data:o})))}))}}]);
//# sourceMappingURL=3.2adb97ab.chunk.js.map